package cn.zt.controller;

import cn.zt.common.Result;
import cn.zt.domain.Examine;
import cn.zt.service.ExamineService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("examine")
public class ExamineController {

    @Resource
    private ExamineService examineService;


    @GetMapping("selectByNameAndId")
    public Result selectByNameAndId(Examine examine){
        Result result = examineService.selectByNameAndId(examine);
        return  result;
    }
    //通过姓名,身份证,手机号查询信息
    @GetMapping("selectByThree")
    public Result selectByThree(Examine examine){
        Result result = examineService.selectByThree(examine);
        return result;
    }


}
